package yur.wedding.modules.sys.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import yur.wedding.common.utils.Query;

import yur.wedding.modules.sys.dao.SysDocumentStateDao;
import yur.wedding.modules.sys.entity.SysDocumentStateEntity;
import yur.wedding.modules.sys.service.SysDocumentStateService;
import yur.wedding.utils.PageUtils;


@Service("sysDocumentStateService")
public class SysDocumentStateServiceImpl extends ServiceImpl<SysDocumentStateDao, SysDocumentStateEntity> implements SysDocumentStateService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SysDocumentStateEntity> page = this.page(
                new Query<SysDocumentStateEntity>().getPage(params),
                new QueryWrapper<SysDocumentStateEntity>()
        );

        return new PageUtils(page);
    }

}
